home *** CD-ROM | disk | FTP | other *** search
- TardisInterface = {};
- TardisInterface.isSplashAnimating = false;
- TardisInterface.showInterface = function(pLevel, blnShow)
- {
- trace("* TardisInterface.showInterface(" + pLevel + "," + blnShow + ")");
- switch(pLevel)
- {
- case 0:
- return false;
- case 1:
- this.toggleSplash(blnShow);
- this.toggleIntro(blnShow);
- this.toggleTemplate(blnShow);
- this.toggleMainNav(true);
- break;
- case 2:
- this.toggleSplash(blnShow);
- this.toggleIntro(blnShow);
- this.toggleTemplate(blnShow);
- this.toggleMainNav(blnShow);
- }
- };
- TardisInterface.setHeader = function(strLabel)
- {
- if(strlabel == "" || strLabel == null)
- {
- strLabel = "default";
- }
- Tardis.header.go(strLabel);
- };
- TardisInterface.setObjProperty = function(prop, val)
- {
- this[prop] = val;
- };
- TardisInterface.toggleSplash = function(blnShow)
- {
- if(Tardis.splash)
- {
- if(blnShow == false)
- {
- if(this.isSplashAnimating == true)
- {
- this.setObjProperty("isSplashAnimating",false);
- Tardis.OverlayController.setObjProperty("resumeSplashAnim",true);
- Tardis.splash.hide();
- }
- }
- else if(Tardis.OverlayController.resumeSplashAnim == true)
- {
- this.setObjProperty("isSplashAnimating",true);
- Tardis.OverlayController.setObjProperty("resumeSplashAnim",false);
- Tardis.splash.resume();
- }
- }
- };
- TardisInterface.toggleIntro = function(blnShow)
- {
- if(blnShow == false)
- {
- if(Tardis.intro)
- {
- trace("!!!!!!! Hide the intro (add some code here though)");
- }
- }
- else if(Tardis.intro)
- {
- trace("!!!!!!! Show the intro (add some code here)");
- }
- };
- TardisInterface.toggleTemplate = function(blnShow)
- {
- if(blnShow == true)
- {
- var val = false;
- }
- else
- {
- var val = true;
- }
- if(ActiveSection != null)
- {
- !blnShow ? itemHide() : itemShow();
- Tardis.template.showMask(val);
- }
- if(Tardis.sideMenu.active)
- {
- Tardis.sideMenu._visible = blnShow;
- }
- if(Tardis.adverts.enabled == true)
- {
- !blnShow ? Tardis.adverts.interrupt() : Tardis.adverts.resume();
- }
- Tardis.adverts._visible = blnShow;
- };
- TardisInterface.toggleMainNav = function(blnShow)
- {
- Tardis.bottomNav._visible = blnShow;
- };
- TardisInterface.enableContent = function(val)
- {
- trace("");
- trace("!!! TardisInterface.enableContent() has been called but has been disabled..... FIX IT!");
- trace("");
- };
-